---
layout: "default"
title: "UnicodeDecodingResult"
description: "Swift documentation for 'UnicodeDecodingResult': The result of one Unicode decoding step."
keywords: "UnicodeDecodingResult,enum,swift,documentation"
root: "/v4.2"
---

<div class="intro-declaration"><code class="language-swift">enum UnicodeDecodingResult</code></div>

<div class="discussion comment">
    <p>The result of one Unicode decoding step.</p>

<p>Each <code>UnicodeDecodingResult</code> instance can represent a Unicode scalar value,
an indication that no more Unicode scalars are available, or an indication
of a decoding error.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">Equatable</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>

<h3 id="cases">Cases</h3>
<div class="declaration" id="case-scalarValue">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-scalarValue">case scalarValue(Unicode.Scalar)</a>
<div class="comment collapse" id="comment-case-scalarValue"><div class="p">
    <p>A decoded Unicode scalar value.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-emptyInput">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-emptyInput">case emptyInput</a>
<div class="comment collapse" id="comment-case-emptyInput"><div class="p">
    <p>An indication that no more Unicode scalars are available in the input.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-error">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-error">case error</a>
<div class="comment collapse" id="comment-case-error"><div class="p">
    <p>An indication of a decoding error.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>








